import request from '@/utils/request'

// 列表
export function getList(data) {
  return request({
    url: '/system/user/page',
    method: 'post',
    data: data
  })
}

export function addData(data) {
  return request({
    url: '/system/user',
    method: 'post',
    data: data
  })
}
export function editData(data) {
  return request({
    url: '/system/user',
    method: 'put',
    data: data
  })
}
// 删除
export function delData (id) {
  return request({
    url: '/system/user/' + id,
    method: 'delete'
  })
}